﻿using Assets.Script.HelpSystem.AtkSystem.Base;
using Assets.Script.Human.Player;
using Assets.Script.Tools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Assets.Script.HelpSystem.AtkSystem.AtkWays
{
    public class AtkWayKnifeSpecial : AtkWayKnifeNormal
    {

        public AtkWayKnifeSpecial(PlayerBody playerBody, AtkInfo atkInfo, Dictionary<Type, int> bulletEffectLevel, int index) : base(playerBody, atkInfo, bulletEffectLevel, index)
        {
        }

        protected override void SetData(params object[] o)
        {
            base.SetData(o);
            atkWaitTime = 1;
            coolTime = new BaseData(atkInfo.ColdTime) + playerBody.PlayerData.SkillsCD;
            attackDir = new AttackDir(10,0,0,0);
            secondTime= atkWaitTime+0.2f;

            dmg = bulletData.Atk * 0.5f;
            bulletData.BulletScale = new BaseData(bulletData.BulletScale * 0.5f);
        }

        protected override void AttackStart_m()
        {
            animator.SetFloat("atkSpeed", 1);
        }

    }
}
